package com.kamikaze.docidset.api;

import org.apache.lucene.search.DocIdSetIterator;


/**
 * Represents a sorted integer set
 */

public interface DocSet
{
	/**
	 * Add a doc id to the set
	 * @param docid
	 */
	void addDoc(int docid);
	
	/**
	 * Gets the number of ids in the set
	 * @return
	 */
	int size();
	
	/**
	 * Gets the iterator on the set
	 * @return
	 */
	public DocIdSetIterator iterator();
	
	/**
	 * Gets the iterator on the Noted set
	 * @return
	 */
	public int find(int val);	
	

	
}
